import request from '@/utils/request'

// 查询压降报信息列表
export function listDispatchPressureDropReportInfo(query) {
  return request({
    url: '/system/dispatchPressureDropReportInfo/list',
    method: 'get',
    params: query
  })
}

// 查询压降报信息详细
export function getDispatchPressureDropReportInfo(pressureDropReportInfoId) {
  return request({
    url: '/system/dispatchPressureDropReportInfo/' + pressureDropReportInfoId,
    method: 'get'
  })
}

// 新增压降报信息
export function addDispatchPressureDropReportInfo(data) {
  return request({
    url: '/system/dispatchPressureDropReportInfo',
    method: 'post',
    data: data
  })
}

// 修改压降报信息
export function updateDispatchPressureDropReportInfo(data) {
  return request({
    url: '/system/dispatchPressureDropReportInfo',
    method: 'put',
    data: data
  })
}

// 删除压降报信息
export function delDispatchPressureDropReportInfo(pressureDropReportInfoId) {
  return request({
    url: '/system/dispatchPressureDropReportInfo/' + pressureDropReportInfoId,
    method: 'delete'
  })
}
